Optimal. Leaf size=31 \[ \frac {\sin (c+d x) \cos (c+d x)}{2 a d}+\frac {x}{2 a} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.02, antiderivative size = 31, normalized size of antiderivative = 1.00, number of steps used = 4, number of rules used = 4, integrand size = 14, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.286, Rules used = {3657, 12, 2635, 8} \[ \frac {\sin (c+d x) \cos (c+d x)}{2 a d}+\frac {x}{2 a} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 8
Rule 12
Rule 2635
Rule 3657
Rubi steps
\begin {align*} \int \frac {1}{a+a \tan ^2(c+d x)} \, dx &=\int \frac {\cos ^2(c+d x)}{a} \, dx\\ &=\frac {\int \cos ^2(c+d x) \, dx}{a}\\ &=\frac {\cos (c+d x) \sin (c+d x)}{2 a d}+\frac {\int 1 \, dx}{2 a}\\ &=\frac {x}{2 a}+\frac {\cos (c+d x) \sin (c+d x)}{2 a d}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.03, size = 26, normalized size = 0.84 \[ \frac {2 (c+d x)+\sin (2 (c+d x))}{4 a d} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.42, size = 40, normalized size = 1.29 \[ \frac {d x \tan \left (d x + c\right )^{2} + d x + \tan \left (d x + c\right )}{2 \, {\left (a d \tan \left (d x + c\right )^{2} + a d\right )}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 1.08, size = 37, normalized size = 1.19 \[ \frac {\frac {d x + c}{a} + \frac {\tan \left (d x + c\right )}{{\left (\tan \left (d x + c\right )^{2} + 1\right )} a}}{2 \, d} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.17, size = 43, normalized size = 1.39 \[ \frac {\tan \left (d x +c \right )}{2 a d \left (1+\tan ^{2}\left (d x +c \right )\right )}+\frac {\arctan \left (\tan \left (d x +c \right )\right )}{2 a d} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 0.48, size = 36, normalized size = 1.16 \[ \frac {\frac {d x + c}{a} + \frac {\tan \left (d x + c\right )}{a \tan \left (d x + c\right )^{2} + a}}{2 \, d} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 11.83, size = 26, normalized size = 0.84 \[ \frac {\frac {\sin \left (2\,c+2\,d\,x\right )}{4\,a}+\frac {d\,x}{2\,a}}{d} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [A] time = 0.54, size = 87, normalized size = 2.81 \[ \begin {cases} \frac {d x \tan ^{2}{\left (c + d x \right )}}{2 a d \tan ^{2}{\left (c + d x \right )} + 2 a d} + \frac {d x}{2 a d \tan ^{2}{\left (c + d x \right )} + 2 a d} + \frac {\tan {\left (c + d x \right )}}{2 a d \tan ^{2}{\left (c + d x \right )} + 2 a d} & \text {for}\: d \neq 0 \\\frac {x}{a \tan ^{2}{\relax (c )} + a} & \text {otherwise} \end {cases} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________